<div id="main-content" class="shelfs">    
<svg version="1.1" id="svg-department-color-big" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
<rect width="50" height="50" fill="<?php echo $this->department->color?>"/>
</svg>
<h2><?php echo $this->department->name?></h2>
<div id="main-content-plan">
<?php echo $this->form ?>
</div>
</div>
<div class="list-wrapper"> 
        <ul>
        <?php foreach ($this->departments as $department ) { ?> 
            <li id=""> 
                 <a href ="<?php echo $this->baseUrl(); ?>/department/edit/id/<?php echo $department->id ?>" id="<?php echo $department->name?>">
                    <?php echo $department->name?>  
                 </a>
                <?php if ($department->id  == $this->departmentIdFromShelf) { ?> 
                <ul id="shelflist">
                    <?php foreach ($this->shelfs as $shelf ) {?>                          
                            
                                <li> 
                                     <a href ="<?php echo $this->baseUrl(); ?>/shelf/edit/id/<?php echo $shelf->id; ?>" id="">
                                        <?php echo $shelf->label?>
                                    </a>
                                </li>
                    <?php } ?>
                </ul>
                <?php } ?>
            </li>                     
        <?php } ?>
        </ul>        
</div>